<?php
if (isset($_POST['param'])) {
  $param = $_POST['param'];
  $encodedParam = mb_convert_encoding($param, 'GBK', 'UTF-8'); // 将 UTF-8 编码转换为 GBK 编码
  
  if (!file_exists($encodedParam . '.json')) {
    $data = array('title' => '念程提醒', 'data' => '卡密咨询念程…', 'Switch' =>'true','bwnc' => (object)[]);
    $formattedData = json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
    file_put_contents($encodedParam . '.json', $formattedData);
    
    echo '小㐓㤅:307154799';
  } else {
    echo '哦买噶';
  }
} else {
  echo '未提交参数';
}
?>
